
const app = getApp()
Page({
  data: {
    baseURL:'https://obuge.com/juzao/categorys',
    itemChange:0,
    Items:[]
  },
  //获取上商品详情接口
  getItems() {
    wx.get('http://localhost:3000/wx/categroy').then(res => {
      this.setData({
        Items:res
      })    
      // console.log(res)
    })
  },


  onLoad(){
    this.getItems()
  },
  xiangqing(){
    //跳转到商品详情页面
    wx.navigateTo({
      url: '/pages/xiangqing/xiangqing',
    })
  },


  onShareAppMessage() {
    return {
      title: 'scroll-view',
    }
  },
})






